const { createApp, ref, computed } = Vue
const app = createApp({
    setup() {
        const title = ref('Hello Vue!')
        const goodsList = ref(goodsData)
        const total = computed(() => {
            return goodsList.value.reduce((total, item) => {
                return total + item.choose
            }, 0)
        })
        return {
            title,
            goodsList,
            total
        }
    }
}).mount('.container')